package cn.xclink.kernel.mapper;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.InsertProvider;
import org.apache.ibatis.annotations.Options;

import cn.xclink.business.entity.MonthEntity;
import cn.xclink.common.entity.ConnomCount;
import cn.xclink.common.mapper.BaseMapper;
import cn.xclink.kernel.entity.User;
import tk.mybatis.mapper.provider.SpecialProvider;

public interface UserMapper extends BaseMapper<User> {
	
	@Options(useGeneratedKeys = true, keyProperty = "user_id")
    @InsertProvider(type = SpecialProvider.class, method = "dynamicSQL")
	public int insertList(List<User> recordList);
	
	public List<User> selectUser(User user);
	public User selectUserAndOrgByAccount(String account);
	
	public MonthEntity selectMonth(String year);
	/*public Map<Long, Long> selectM();*/
	public List<ConnomCount> selectM(String year);
	
}